{include file="public/header" /}

<form class="ajax-form">
	<section class="panel panel-default">
		<header class="panel-header">
			<div class="title"><i class="icon-arrow-down-solid"></i>{$_cur_title}</div>
			<div class="opt-box" style="float: right">
				<a href="" class="jump"><i class="icon-back"></i>返回</a>
			</div>
		</header>
		<div class="panel-body">
			<div class="form-group">
				<div class="name">标题</div>
				<div class="input">
					<input type="text" name="title" value="{$info['title']}" class="form-control" placeholder="请填写文章标题！" required>
				</div>
			</div>
			<div class="form-group">
				<div class="name">打开类型</div>
				<div class="input">
					<select name="open_type">
						<option value="no_operation" {$info['open_type'] == 'no_operation' ? 'selected' : ''}>无操作</option>
						<option value="browser" {$info['open_type'] == 'browser' ? 'selected' : ''}>URL链接</option>
					</select>
				</div>
			</div>
			
			<div class="form-group">
				<div class="name">打开参数</div>
				<div class="input">
					<input type="text" name="open_content" value="{$info['open_content']}" class="form-control" placeholder="">
					<div class="help">详情的则填写对应ID，URL链接则填写带http开头的URL地址</div>
				</div>
			</div>

			<div class="form-group">
				<div class="name">描述说明</div>
				<div class="input">
					<textarea name="description">{$info['description']}</textarea>
				</div>
			</div>

			{:widget('Widget/upload_file', ['图片', 'images_id', $info['images_id'], '100*100', 0])}
		</div>
	</section>

	<div class="form-group-submit fixed">
		<input type="hidden" name="module" value="{$module}">
		<button type="submit" class="btn btn-sm bg-info"><i class="icon-save"></i>保存</button>
		<button type="button" class="btn btn-sm bg-cancel jump"><i class="icon-back"></i>返回</button>
		<div class="fixed-cover"></div>
	</div>
</form>
{include file="public/footer" /}